import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { WelcomeComponent } from './welcome.component';

import { BaseModule } from '@/app/modules/base.module';
import { FormValidateComponent } from './forms/formvalidate.component';

const routes: Routes = [
  { path: '', component: WelcomeComponent },
  { path: 'formValidate', component: FormValidateComponent }
];

@NgModule({
  declarations: [WelcomeComponent, FormValidateComponent],
  imports: [BaseModule, RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class WelcomeModule { }
